#!/bin/bash
if [ ! -n "${1}" ]; then
        echo "ERROR! param error, request MYSQL rootPass."
        exit 0;
fi
status=`echo $(mysql -uroot -p${1} -e "show slave status \G;" | grep -i 'running:')`
echo $status
